<link rel="stylesheet" href="/assets/css/common.css"/>
<link rel="stylesheet" href="/assets/css/infoModified.css"/>
<link rel="stylesheet" href="/assets/css/menu.css"/>
<link rel="stylesheet" href="/assets/css/ico-topbar-white.css"/>
<link rel="stylesheet" href="/assets/css/bottom.css"/>

<@extends name="/project/ico-topbar-white.ftl"/>
<div class="all">
    <@extends name="/project/menu.ftl"/>
    <div class="content">
        <div class="inve-title clearfix">
            <i></i>
            <h3>修改资料</h3>
        </div>
        <#list fuUserVO as fuUserVO>
            <div class="info-form clearfix">
                <div class="info-row clearfix">
                    <div class="row-left">
                        <p>头像选择：</p>
                    </div>
                    <div class="row-right">
                        <div>
                            <#if portrait>
                                <img src="${fuUserVO.portrait}" alt="" class="user-portrait" id="${bucketDomain}">
                                <#else>
                                    <img src="/assets/img/par.png" alt="" class="user-portrait">
                            </#if>

                        </div>
                        <input type="file" value="请选择头像" name="file" id="fileUpload1"  onchange="uploadFile(this,1)"/>
                    </div>
                </div>
                <div class="info-row clearfix">
                    <div class="row-left">
                        <p>城市：</p>
                    </div>
                    <div class="row-right">
                        <select name="" id="province">
                            <#list province as province>
                                <#if fuUserVO.provinceId==province.id>
                                    <option value="${province.id}" class="province-item" selected>${province.name}</option>
                                    <#else>
                                        <option value="${province.id}" class="province-item">${province.name}</option>
                                </#if>
                            </#list>
                        </select>
                        <select name="" id="city">
                            <#list city as city>
                            <#if city.id>
                                <#else>
                                    <option value="">城市</option>
                            </#if>
                            </#list>
                        </select>
                    </div>
                </div>
                <div class="info-row clearfix">
                    <div class="row-left">
                        <p>性别：</p>
                    </div>
                    <div class="row-right">
                        <#if fuUserVO.gender==1>
                            <input type="radio" class="radio" name="sex" id="man" value="1" checked>
                            <label for="man">男</label>
                            <#else>
                                <input type="radio" class="radio" name="sex" id="man" value="1">
                                <label for="man">男</label>
                        </#if>
                        <#if fuUserVO.gender==2>
                            <input type="radio" class="radio" name="sex" id="feman" value="2" checked>
                            <label for="feman">女</label>
                            <#else>
                                <input type="radio" class="radio" name="sex" id="feman" value="2">
                                <label for="feman">女</label>
                        </#if>
                    </div>
                </div>
                <div class="info-row clearfix">
                    <div class="row-left">
                        <p>邮箱：</p>
                    </div>
                    <div class="row-right">
                        <input type="button" class="text email" value="${fuUserVO.email}">
                    </div>
                </div>
                <div class="info-row clearfix">
                    <div class="row-left">
                        <p>职业：</p>
                    </div>
                    <div class="row-right">
                        <input type="text" class="text profession" value="${fuUserVO.profession}">
                    </div>
                </div>
                <div class="info-row clearfix">
                    <div class="row-left">
                        <p>工作单位：</p>
                    </div>
                    <div class="row-right">
                        <input type="text" class="text work" value="${fuUserVO.workAddress}">
                    </div>
                </div>
                <div class="info-row clearfix">
                    <div class="row-left">
                        <p>QQ：</p>
                    </div>
                    <div class="row-right">
                        <input type="text" class="text qq" value="${fuUserVO.qq}">
                    </div>
                </div>

                <div class="info-row clearfix">
                    <div class="row-left">
                        <p>联系地址：</p>
                    </div>
                    <div class="row-right">
                        <input type="text" class="text address" value="${fuUserVO.address}">
                    </div>
                </div>
                <div class="info-row clearfix">
                    <div class="row-left">
                        <p>自我简介：</p>
                    </div>
                    <div class="row-right">
                        <textarea name="" id="" cols="30" rows="10" class="introduction">${fuUserVO.introduction}</textarea>
                    </div>
                </div>
                <p class="err-info"></p>
                <div class="info-btn">
                    提交
                </div>
            </div>
        </#list>
    </div>
</div>
<#--<@extends name="/project/bottom.ftl"/>-->


<script src="/assets/script/jquery-1.8.2.min.js"></script>
<script src="https://cdn.bootcss.com/jquery.form/4.2.2/jquery.form.js"></script>
<script src="https://cdn.bootcss.com/seajs/3.0.2/sea.js"></script>
<script src="/assets/script/ajaxfileupload.js"></script>
<script src="/assets/script/common.js"></script>
<script src="https://cdn.bootcss.com/handlebars.js/4.0.11/handlebars.js"></script>
<script type="text/template" id="myTemplate" src="/assets/script/center-template.js">

    {{#each data.collection}}
        <option value="{{id}}">{{name}}</option>
    {{/each}}
</script>
<script src="/assets/script/info-modified.js"></script>
<script src="https://cdn.bootcss.com/blueimp-md5/2.10.0/js/md5.js"></script>
